package com.exteam.common.network;

/**
 * 下载文件信息类
 *
 * @author sean.yanghy
 */
public class DownloadFile implements java.io.Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private long downId;            // 自动增长id
    private String resTitle;    // 资源名称 从其他页面获取
    private String fileId;    // 文件Id 从服务器获取
    private String fileName;    // 文件名 从服务器获取
    private String filePath;    // 文件网络路径 从服务器获取
    private long fileSize = 0;
    private String localFilePath; // 本地文件路径
    private int tag;            //  0 下载中 1 完成

    public long getDownId() {
        return downId;
    }

    public void setDownId(long downId) {
        this.downId = downId;
    }

    public void setDownId(int downId) {
        this.downId = downId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getLocalFilePath() {
        return localFilePath;
    }

    public void setLocalFilePath(String localFilePath) {
        this.localFilePath = localFilePath;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public String getResTitle() {
        return resTitle;
    }

    public void setResTitle(String resTitle) {
        this.resTitle = resTitle;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    @Override
    public String toString() {
        return "DownloadFile [downId=" + downId + ", resTitle=" + resTitle
                + ", fileId=" + fileId + ", fileName=" + fileName
                + ", filePath=" + filePath + ", fileSize=" + fileSize
                + ", localFilePath=" + localFilePath + ", tag=" + tag
                ;
    }

}
